package com.zhuang.designpattern.observer.event.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zhuang.designpattern.observer.LotteryResult;
/**
 * description: MessageEventListener
 * date: 2022/9/20 16:47
 * author: Zhuang
 * version: 1.0
 */
public class MessageEventListener implements EventListener {

    private final Logger logger = LoggerFactory.getLogger(MessageEventListener.class);

    @Override
    public void doEvent(LotteryResult result) {
        logger.info("给用户 {} 发送短信通知(短信)：{}", result.getUId(), result.getMsg());
    }

}
